package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/26 9:05
 */
@Data
@TableName(value = "arisk_order", autoResultMap = true)
@ApiModel(value = "订单表")
public class AIRiskOrder extends BaseEntity {
    @TableField(value = "user_id", jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "订单编号")
    @TableField(value = "order_no", jdbcType = JdbcType.VARCHAR)
    private String orderNo;

    @TableField(value = "order_price", jdbcType = JdbcType.DECIMAL)
    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderPrice;

    @TableField(value = "months", jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "时长/月")
    private Integer months;

    @TableField(value = "pay_status", jdbcType = JdbcType.SMALLINT)
    @ApiModelProperty(value = "支付状态：0待支付，1支付成功，2申请退款，3退款成功")
    private Short payStatus;

    @TableField(value = "pay_id", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "微信付款编号")
    private String payId;

    @TableField(value = "pay_time")
    @ApiModelProperty(value = "微信付款编号")
    private LocalDateTime payTime;


}
